import { BaseTableConfig } from '@/components/base-ui/base-table/type';
import { thWordLength4, widthLevel1, widthLevel2 } from '@/config';

export const tableConfig: BaseTableConfig = {
    items: [
        {
            modelKey: 'supplierCode',
            columnProps: {
                label: '供应商编码',
                width: widthLevel2
            }
        },
        {
            modelKey: 'supplierName',
            columnProps: {
                label: '供应商名称',
                width: widthLevel2
            }
        },
        {
            modelKey: 'supplierPhone',
            columnProps: {
                label: '供应商电话',
                width: widthLevel2
            }
        },
        {
            modelKey: 'supplierPerson',
            columnProps: {
                label: '供应商姓名',
                width: widthLevel2
            }
        },
        {
            modelKey: 'materialCode',
            columnProps: {
                label: '物料编码',
                width: widthLevel2
            }
        },
        {
            modelKey: 'materialName',
            columnProps: {
                label: '物料名称',
                width: widthLevel2
            }
        },
        {
            slotName: 'finishedProductRate',
            modelKey: 'finishedProductRate',
            columnProps: {
                label: '成品率',
                width: thWordLength4
            }
        },
        {
            slotName: 'quasiDeliveryRate',
            modelKey: 'quasiDeliveryRate',
            columnProps: {
                label: '准交率',
                width: thWordLength4
            }
        },
        {
            modelKey: 'creator',
            columnProps: {
                label: '创建人',
                width: widthLevel2
            }
        },
        {
            modelKey: 'createTime',
            columnProps: {
                label: '创建时间',
                width: widthLevel1
            }
        }
    ],

    unIndex: true
};
